package com.qf.advice;

import org.aopalliance.intercept.MethodInterceptor;
import org.springframework.aop.BeforeAdvice;
import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

public class MyBeforAdvice implements MethodBeforeAdvice {
    public void before(Method method, Object[] objects, Object o) throws Throwable {
        System.out.println("=======执行了前置通知额外功能========");
        System.out.println("=======执行了日志功能!========");
    }
}
